import Vue from 'vue'
import Router from 'vue-router'
import PC from '@/components/pc'
import Wap from '@/components/wap'
import Index from '@/components/PC/index'
import pay from '@/components/PC/pay'
import helpcenter from '@/components/PC/helpcenter'
import Q1 from '@/components/PC/help/Q1'

Vue.use(Router)

const routes = [
    {
      path: '/',
      name: 'Home',
      redirect: '/pc'
    },
    {
      path: '/pc',
      name: 'PC',
      component: PC,
      children:[{
        path:'/pc',
        component:Index
      },{
        path:'/pay',
        component:pay
      },{
        path:'/help-center',
        component:helpcenter,
        children:[{
          path:'/Q1',
          component:Q1
        }]
      }]
    },
    {
      path: '/wap',
      name: 'wap',
      component: Wap
    }
  ]

  const router = new Router({
      routes
  });

  export default router;
